home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20010306-20010921
/
000057_news@columbia.edu _Thu Apr 5 15:12:49 2001.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Return-Path: <news@columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by fozimane.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id PAA11476
for <kermit.misc@cpunix.cc.columbia.edu>; Thu, 5 Apr 2001 15:12:49 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id OAA29055
for kermit.misc@watsun.cc.columbia.edu; Thu, 5 Apr 2001 14:56:52 -0400 (EDT)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: fdc@columbia.edu (Frank da Cruz)
Subject: Re: Macro prameters containing spaces?
Date: 5 Apr 2001 18:56:51 GMT
Organization: Columbia University
Message-ID: <9aif5j$sbs$1@newsmaster.cc.columbia.edu>
To: kermit.misc@columbia.edu
In article <LJ2z6.11071$SB2.1260878@ruti.visi.com>,
Grant Edwards <grante@visi.com> wrote:
: I'm trying to automate some stuff done via serial port using
: CKermit 7. My local B&N didn't carry the book, so I've ordered
: a copy. But, in the meanwhile, I'm stuck on trying to write a
: macro where one of the parameters is a string that may have
: spaces in it:
:
: define docmd {
: output \fcontents(\%2)
: output \13
: input \%1 Prompt>
: if failure echo FAILURE
: }
:
: define setup {
: docmd 1 hello
: docmd 1 "ip 192.168.1.11 255.255.255.0 192.168.1.1"
: docmd 25 "flash init -f"
: docmd 1 reset
: }
:
: I've tried using \32 for space in the parameter string and that
: doesn't work either. There must be trick to make this work...
:
There's nothing wrong with your script as far as argument passing is
concerned, as you can verify for youself with TRACE /ON or by putting
SHOW ARGS as the first command in DOCMD. I ran your SETUP macro myself,
supplying a "Prompt>" string four times, and it worked fine.
- Frank